package com.wyz.note.project.auth.common.vo.base;

import com.wyz.note.project.auth.domain.pojo.Permission;
import com.wyz.note.project.auth.domain.pojo.Role;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * @Description: 菜单权限
 * @Author: wei yz
 * @Date: 2022/6/19 15:31
 */
public class MenuPermissionInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    private String id;
    /**
     * 名称
     */
    @ApiModelProperty(value = "权限名称")
    private String name;

    /**
     * url
     */
    @ApiModelProperty(value = "URL")
    private String url;

    /**
     * 类型 0 菜单 1权限
     */
    @ApiModelProperty(value = "类型 0 菜单 1权限")
    private String type;

    /**
     * 父ID
     */
    @ApiModelProperty(value = "父ID")
    private String parentId;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Long sort;
    /**
     * 角色列表
     */
    private List<Role> roles;

    @Override
    public String toString() {
        return "MenuPermissionInfo{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", type='" + type + '\'' +
                ", parentId='" + parentId + '\'' +
                ", sort=" + sort +
                ", roles=" + roles +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }
}
